#ifndef PROCESS_H
#define PROCESS_H

#include "struc_arg.h"
typedef enum
{
  UNKNOW = -1,
  MSG_INFO,
  MSG_WARNING,
  MSG_ERROR,
  END_OF_ENUM,
} ERROR_TYPE_E;

typedef struct result_s
{
    char* str_;
    char* fileName_;
    int strSize_;
    int fileNameSize_;
    int lineNumber_;
    struct result_s* next_;
}result_t;

char* getPaths(int pPathNumber, char** p);

int startProcessing(  arg_t* pArgs );
int isFile(const char* pPath);

void basicLookout(char* pPath, const char* pStr, int invert, arg_t* pArgs);
void basicLookoutFolder(const char* pPath, const char* pStr, int invert, int pRecurs, arg_t* pArgs);
void showResult(char* pLine, char* pPath, int pLineNumber, arg_t* pArgs);

void printMessage(const char* pMessage, int pType, const arg_t* pArg_t);
void displayResults(const result_t* pFirst, arg_t* pArgs);

#endif //PROCESS_H
